const path = require("path");

const resolve = dir => path.resolve(__dirname, dir);

module.exports = {
  webpack: {
    // 配置别名
    alias: {
      "@": resolve("src"),
      "components": resolve("src/components")
    },
    // 配置默认指定后缀名
    extensions: ['.js', '.jsx', '.json']
  }
}